//
//  HPCMTransRecordViewController.m
//  HPZZTong
//
//  Created by handpay on 14-4-11.
//  Copyright (c) 2014年 Handpay. All rights reserved.
//

#import "HPCMTransRecordViewController.h"
#import "HPTransRecordView.h"

@interface HPCMTransRecordViewController (){
    HPTransRecordView* recordBgView;
}
@end

@implementation HPCMTransRecordViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        [self createItem];
    }
    return self;
}
- (void)createItem{
    CGRect frame = CGRectMake(0, 0, ScreenWidth, 424);
    if (HP_Device_iPhone5) {
        frame.size.height += IPHONE5_ADD_HEIGHT;
    }
    
    recordBgView = [[HPTransRecordView alloc]initWithFrame:frame];
    recordBgView.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:recordBgView];
}
- (void)viewDidLoad
{
    self.title = @"收款流水";
    [super viewDidLoad];
    
}
- (void)viewDidAppear:(BOOL)animated{
    [super viewDidAppear:animated];
    [ZZT_UIENG hideNavigationBar:NO];
}
- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    [ZZT_UIENG hideNavigationBar:NO];
    
//    [self hideTabBar:NO];
    recordBgView.appCode = [self.screenData objectForKey:@"appCode"];
    
    if (recordBgView) {
        [recordBgView updateRecord];
    }
}
- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
}

@end
